package com.Brave.manager.Demo01;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("D:\\JAVA\\s.txt");

        fos.write("我爱吃鱼".getBytes());
        fos.write("\r".getBytes());
        fos.write("我爱吃鱼".getBytes());
        fos.write("\r\t".getBytes());
        fos.write("我爱吃鱼".getBytes());
        fos.write("\r\t".getBytes());
        fos.write("我爱吃鱼".getBytes());
        fos.write("\r\t".getBytes());

        byte[] arr = {1,89,2,4,52,51};
        fos.write(arr);

        for (int i = 0; i < 10; i++) {
            fos.write("我爱吃炸鸡".getBytes());
            fos.write("\r\t".getBytes());
        }

        fos.close();
    }
}
